<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="w" uri="http://www.groupwareworkbench.org.br/widgets/commons" %>
<%@ taglib prefix="tag" uri="http://www.groupwareworkbench.org.br/widgets/tag" %>
<%@ taglib prefix="recommend" uri="http://www.groupwareworkbench.org.br/widgets/recommend" %>
<%@ taglib prefix="comment" uri="http://www.groupwareworkbench.org.br/widgets/comment" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Cache-Control" content="no-cache">
        <title>Not&iacute;cias</title>
        <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/images/favicon.ico" />
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/reset.css" />
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/tagcloud.css" />
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/aun.css" />
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/listagem.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
        <tag:scriptTags />
    </head>
    <body>
        <w:topo collabletInstance="${newsMgr.collablet}" />
        <w:conteudoPagina titulo="News:">
            <br />
            <%-- TODO: Tableless! --%>
            <form name="dados" method="post" action="<c:url value="/groupware-workbench/news/${news.id}/updateRelated" />">
            	<div>
            		<div class="page_element">
                		<span class="subTitulo"><c:out value="${news.escapedTitle}" /></span>
            		</div>
            		
            		<div style="padding: 20px;">
            			<b><c:out value="${news.escapedSubTitle}" /></b>
            			<br />
            			<c:out value="${news.body}" escapeXml="false" />
            			
            		</div>
            		<div>
            			<c:if test="${tagMgr != null}">
                        	<tag:getTags tagMgr="${tagMgr}" entity="${news}" showTitle="true" tagsClass="cloud5" />
                        </c:if>
                        <br/>
                        <br/>
                        <c:if test="${recommendMgr != null}">
                        	<recommend:simpleList entity="${news}" recommendMgr="${recommendMgr}" />
                        </c:if>
						<br/>
						<br/>
                        <c:if test="${commentMgr != null}">
                        	<comment:getComments commentMgr="${commentMgr}" entity="${news}" />
                            <comment:addComment commentMgr="${commentMgr}" idObject="${news.id}" user="${sessionScope.userLogin}" />
                            <input type="submit" class="botao" value="Ok" />
                        </c:if>
            		</div>
                </div>
                <br />
                <br />
            </form>
            <div class="barra_botoes">
                <w:voltar collabletInstance="${newsMgr.collablet}" />
            </div>
        </w:conteudoPagina>
    </body>
</html>